using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace WqLunTan.Models.DataBase
{
    /// <summary>
    /// 文章分类表
    /// </summary>
    [Table("article_category")]
    public class article_category : BaseUpdateEntity
    {
        /// <summary>
        /// 分类名称
        /// </summary>
        [MaxLength(30)]
        public string category_name { get; set; }

        /// <summary>
        /// 排序数字
        /// </summary>
        [Range(1, 100)]
        public int sort { get; set; }

        /// <summary>
        /// 图片链接或者相对路径
        /// </summary>
        [MaxLength(255)]
        [Required(AllowEmptyStrings = true)]
        public string img { get; set; }
        
        /// <summary>
        /// 是否显示
        /// </summary>
        public bool is_show { get; set; }
    }
}
